const {
    Sequelize
} = require('sequelize');
const sequelize = new Sequelize('bokeall', 'root', 'root', {
    host: 'localhost',
    dialect: 'mysql'
});


// 测试连接
sequelize.authenticate().then(() => {
    console.log('ok')
}).catch(() => {
    console.log('err')
})

module.exports = sequelize